import axios from '@/util'; 

import type {
  mianFeiGuShiEntity,
  WenBenHeYinPinSheBeiCanShu,
  biaoQianIcon,
} from './typings';



/**
 * 查询免费故事列表 GET /api/mianFeiGushi
 */
export async function get_api_mianfeigushi (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<mianFeiGuShiEntity> {
  return axios({
    method: 'GET',
    url: `/api/mianFeiGushi`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 创建免费故事 POST /api/mianFeiGushi
 */
export async function post_api_mianfeigushi (
  data: {
    /**  */
    id?: string;
    /**  */
    wenBenHeYinPinSheBeiCanShu?: WenBenHeYinPinSheBeiCanShu__;
    /**  */
    biaoTi?: string;
    /**  */
    biaoQianIcon?: biaoQianIcon__;
    /**  */
    keYong?: boolean;
    /**  */
    uuid?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/mianFeiGushi`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 *  GET /api/mianFeiGushi/{id}
 */
export async function get_api_mianfeigushi__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'GET',
    url: `/api/mianFeiGushi/${pathVars.id}`,
    ...(options || {}),
  })
}

/**
 * 修改免费故事 PUT /api/mianFeiGushi/{id}
 */
export async function put_api_mianfeigushi__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  data: {
    /**  */
    id?: string;
    /**  */
    wenBenHeYinPinSheBeiCanShu?: WenBenHeYinPinSheBeiCanShu__;
    /**  */
    biaoTi?: string;
    /**  */
    biaoQianIcon?: biaoQianIcon__;
    /**  */
    keYong?: boolean;
    /**  */
    uuid?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'PUT',
    url: `/api/mianFeiGushi/${pathVars.id}`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 删除免费故事 DELETE /api/mianFeiGushi/mianFeiGushiShanchu/{id}
 */
export async function delete_api_mianfeigushi_mianfeigushishanchu__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'DELETE',
    url: `/api/mianFeiGushi/mianFeiGushiShanchu/${pathVars.id}`,
    ...(options || {}),
  })
}
